@ConfigurationProperties(prefix = "spring.batch.datasource")
@Data
public class MultiDataSourceProperties {
    
    private Map<String, DataSourceProperties> sources = new HashMap<>();
    
    // 主数据源名称
    private String primary = "default";
    
    @Data
    public static class DataSourceProperties {
        private String url;
        private String username;
        private String password;
        private String driverClassName;
        // 持久化框架类型: JPA, MYBATIS, JDBC
        private PersistenceType persistenceType = PersistenceType.JPA;
        private Map<String, String> properties = new HashMap<>();
    }
    
    public enum PersistenceType {
        JPA, MYBATIS, JDBC
    }
} 